//
//  main.m
//  7.5homework
//
//  Created by dllo on 16/7/5.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Fraction.h"
int main(int argc, const char * argv[]) {
    @autoreleasepool {
        Fraction *fra1 = [[Fraction alloc]initWithNumerator:3 deniminator:5];
        NSLog(@"%@",fra1);
        Fraction *fra2 = [[Fraction alloc]initWithNumerator:2 deniminator:3];
        Fraction *sum = [fra1 addFraction:fra2];
        NSLog(@"%@",sum);
        Fraction *del = [fra1 delFraction:fra2];
        NSLog(@"%@",del);
        Fraction *mul = [fra1 mulFraction:fra2];
        NSLog(@"%@",mul);
        Fraction *div = [fra1 divFraction:fra2];
        NSLog(@"%@",div);
        [fra1 comFraction:fra2];
       
    }
    return 0;
}
